# -*- mode: snippet -*-
# name: def fn(args): R = { ... }
# --
def ${1:name}(${2:args}): ${3:Unit} = {
    `%`$0
}